package com.atguigu.gulimall.product.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 线程池配置参数（可在pom.xml加入配置文件属性提示工具）
 */
@ConfigurationProperties(prefix = "gulimall.thread")
@Component
@Data
public class ThreadPoolConfigProperties {
    //核心线程池大小
    private Integer coreSize;
    //线程池最大容量
    private Integer maxSize;
    //空闲线程关闭时间
    private Integer keepAliveTime;
}
